package com.ssm.module.user.entity;

import java.util.Date;

import org.hibernate.validator.constraints.NotEmpty;

import com.ssm.common.persistence.DataEntity;

/**   
*    
* 项目名称：filmSys   
* 类名称：User   
* 类描述：   管理员实体
* 创建人：edwarder   
* 创建时间：2017年10月13日 上午8:26:31   
*   
*/

public class User extends DataEntity<User>{
	
	private static final long serialVersionUID = 1L;
	@NotEmpty(message= "{username.isNull}")
	private String username;
	@NotEmpty(message= "{password.isNull}")
	private String password;
	
	public User() {
	}
	
	public User(String username, String password,Date createTime,Date updateTime) {
		this.username = username;
		this.password = password;
	}

	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}

	@Override
	public String toString() {
		return "User [username=" + username + ", password=" + password + "]";
	}
	
}
